<%--
  Created by IntelliJ IDEA.
  User: uas
  Date: 2018/3/26
  Time: 10:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="common/tag.jsp"%>

<!DOCTYPE html>
<html>
<head>

    <title>秒杀详情页</title>
    <%@include file="common/head.jsp"%>
</head>
<body>
    <div  class="container">
        <div  class="panel panel-dafault text-center">
            <div class="pannel-heading">
                <h2>${seckill.name }</h2>
            </div>
            <div class="panel-body">
                <h3 class="text-danger">
                    <%--显示Time图标--%>
                    <span class="glyphicon glyphicon-time"></span>

                    <span class="glyphicon" id="seckill-box"></span>
                </h3>
            </div>
        </div>
    </div>

    <%--登录弹出层，输入电话--%>
    <div id="killPhoneModel" class="modal fade">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <h4 class="modal-title text-center">
                        <span class="glyphicon glyphicon-phone">输入手机号码</span>
                    </h4>
                </div>
                <div class="modal-body">
                    <div class="row">
                        <div class="col-xs-8 col-xs-offset-2">
                            <input type="text" name="killPhone" id="killPhoneKey"
                            placeholder="填写手机号" class="form-control"/>
                        </div>
                    </div>
                </div>

                <div class="modal-footer">
                    <%--验证信息--%>
                    <span   id="killPhoneMessage" class="glyphicon"></span>
                    <button type="button" id="killPhoneBtn" class="btn btn-success">
                        <span class="glyphicon glyphicon-phone"></span>
                        Submit
                    </button>
                </div>
            </div>
        </div>
    </div>
</body>
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

<script src="https://cdn.bootcss.com/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>

<script src="https://cdn.bootcss.com/jquery-countdown/2.0.1/jquery.countdown.min.js"></script>

<script src="/resources/common/seckill.js" type="text/javascript"></script>


<script type="text/javascript">
    $(function () {
        seckill.detail.init({
            seckillId: ${seckill.seckillId},
            startTime: ${seckill.startTime.time},
            endTime: ${seckill.endTime.time}
        });
    });

</script>


</html>